package com.sunshine.order.server.message;

import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;

/**
 * @author WeiHong
 * @date 2019/8/12 14:09
 */
public interface StreamClient {

    String INPUT = "myMessage";

    String INPUT2 = "myMessage2";

    /**
     * 消息发送
     *
     * @return
     */
    @Output(StreamClient.INPUT)
    MessageChannel output();

    @Output(StreamClient.INPUT2)
    MessageChannel output2();


}
